{extend name="Public:base" /}
{block name="main"}

<ol class="breadcrumb auto-nav-path">
  <li><i class="glyphicon glyphicon-home"></i>&nbsp;&nbsp;<a href="#">后台首页</a></li>
  <li class="active">后台管理中心</li>
</ol>   
    
<div class="panel panel-default auto-back-panel">
    <div class="panel-heading"> <i class="glyphicon glyphicon-pencil"></i> 编辑页</div>
    <div class="panel-body">
        <form action="{:url()}" method="post" class="form-horizontal">
        	<input type="hidden" name="id" value="{$data.id|default=''}">
	        <div class="form-group auto-input">
	            <label for="title" class="col-sm-2 control-label">标题</label>
	            <div class="col-sm-3">
	            <input name="title" type="text" class="form-control" id="title" placeholder="标题" value="{$data.title|default=''}">
	            </div>
	        </div>
	    
	        <div class="form-group auto-input">
	            <label for="sort" class="col-sm-2 control-label">排序 </label>
	            <div class="col-sm-3">
	            <input name="sort" type="text" class="form-control" id="sort" placeholder="排序" value="{$data.sort|default=50}">
	            </div>
	        </div>
	    
	        <div class="form-group auto-input">
	            <label for="url" class="col-sm-2 control-label">链接</label>
	            <div class="col-sm-3">
	            <input name="url" type="text" class="form-control" id="url" placeholder="链接" value="{$data.url|default=''}">
	            </div>
	        </div>
	    
	        <div class="form-group auto-select">
	            <label for="pid" class="col-sm-2 control-label">上级菜单</label>
	            <div class="col-sm-3">
	                <select id="pid" class="form-control" name="pid">
	                    <option value="0">顶级菜单</option>
	                    {foreach $parentTitle as $vo}
	                    <option value="{$vo.id}">{$vo.title}</option>
	                    {/foreach}
	                </select>
	            </div>
	        </div>
	    
	        <div class="form-group auto-input">
	            <label for="group_iden" class="col-sm-2 control-label">分组</label>
	            <div class="col-sm-3">
	            <input name="group_iden" type="text" class="form-control" id="group_iden" placeholder="分组" value="{$data.group_iden|default=''}">
	            </div>
	        </div>
	    
	        <div class="form-group auto-radio">
	            <label for="input4" class="col-sm-2 control-label">是否隐藏</label>
	            <div class="col-sm-3">
	                <label class="radio-inline">
	                    <input name="is_show" type="radio"  checked="" id="" value="1"> 显示
	                </label>
	                <label class="radio-inline">
	                    <input name="is_show" type="radio" id="" value="-1"> 隐藏
	                </label>
	            </div>
	        </div>
	    
	    
	        <div class="form-group auto-input">
	            <label for="tip" class="col-sm-2 control-label">说明</label>
	            <div class="col-sm-3">
	            <input name="tip" type="text" class="form-control" id="tip" placeholder="说明" value="{$data.tip|default=''}">
	            </div>
	        </div>
	    
	        <div class="form-group auto-submit">
	            <div class="col-sm-offset-2 col-sm-6">
	                <button type="submit" class="btn btn-success">确定</button>
	                <a class="btn btn-default" href="#" role="button">返回</a>
	            </div>
	        </div>
    </form>
    </div>
</div>
{/block}

{block name="javascript"}
{/block}